package cn.edu.scau.cmi.liangzijian.hibernate.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static ApplicationContext applicationContext = null;
	
	public static ApplicationContext getInstance() {
		if(applicationContext == null) {
			applicationContext = new ClassPathXmlApplicationContext(
					"cn/edu/scau/cmi/liangzijian/hibernate/applicationContext.xml");
		}
		return applicationContext;
	}
}
